import type { Edge, Node } from "@vue-flow/core";

const position = { x: 0, y: 0 };
const nodeType = "process";
const edgeType = "animation";
export const initialNodes: Node[] = [
  {
    id: "1",
    position,
    type: nodeType,
    data: {
      label: "设备1",
      deviceModel: "EX-800",
      deviceStatus: "运行中",
      deviceLabel: "1号注液工位",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "2",
    position,
    type: nodeType,
    data: {
      label: "设备2",
      deviceModel: "DRY-2000",
      deviceStatus: "待机",
      deviceLabel: "A线烘干段",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "3",
    position,
    type: nodeType,
    data: {
      label: "设备3",
      deviceModel: "CT-550",
      deviceStatus: "运行中",
      deviceLabel: "东区涂布一段",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "4",
    position,
    type: nodeType,
    data: {
      label: "设备4",
      deviceModel: "FS-120",
      deviceStatus: "故障",
      deviceLabel: "测试区1号",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "5",
    position,
    type: nodeType,
    data: {
      label: "设备5",
      deviceModel: "DP-700",
      deviceStatus: "运行中",
      deviceLabel: "叠片工位5",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "6",
    position,
    type: nodeType,
    data: {
      label: "设备6",
      deviceModel: "JW-330",
      deviceStatus: "维护中",
      deviceLabel: "南线卷绕站",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "7",
    position,
    type: nodeType,
    data: {
      label: "设备7",
      deviceModel: "CC-660",
      deviceStatus: "运行中",
      deviceLabel: "西区化成柜A",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "8",
    position,
    type: nodeType,
    data: {
      label: "设备8",
      deviceModel: "TS-999",
      deviceStatus: "运行中",
      deviceLabel: "高温测试区",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "9",
    position,
    type: nodeType,
    data: {
      label: "设备9",
      deviceModel: "ZP-500",
      deviceStatus: "待机",
      deviceLabel: "南一装配线",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "10",
    position,
    type: nodeType,
    data: {
      label: "设备10",
      deviceModel: "SM-210",
      deviceStatus: "运行中",
      deviceLabel: "扫码区入口",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "11",
    position,
    type: nodeType,
    data: {
      label: "设备11",
      deviceModel: "JL-500",
      deviceStatus: "运行中",
      deviceLabel: "原料间1号",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID
    }
  },
  {
    id: "12",
    position,
    type: nodeType,
    data: {
      label: "设备12",
      deviceModel: "GY-800",
      deviceStatus: "运行中",
      deviceLabel: "涂布后处理",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "13",
    position,
    type: nodeType,
    data: {
      label: "设备13",
      deviceModel: "HJ-1200",
      deviceStatus: "待机",
      deviceLabel: "焊接站1",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "14",
    position,
    type: nodeType,
    data: {
      label: "设备14",
      deviceModel: "NF-330",
      deviceStatus: "运行中",
      deviceLabel: "北区封口段",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "15",
    position,
    type: nodeType,
    data: {
      label: "设备15",
      deviceModel: "LH-900",
      deviceStatus: "运行中",
      deviceLabel: "老化区C柜",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "16",
    position,
    type: nodeType,
    data: {
      label: "设备16",
      deviceModel: "FR-400",
      deviceStatus: "故障",
      deviceLabel: "分容测试区B",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "17",
    position,
    type: nodeType,
    data: {
      label: "设备17",
      deviceModel: "CW-150",
      deviceStatus: "运行中",
      deviceLabel: "包装前质检",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "18",
    position,
    type: nodeType,
    data: {
      label: "设备18",
      deviceModel: "TB-60",
      deviceStatus: "运行中",
      deviceLabel: "标签区2号",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "19",
    position,
    type: nodeType,
    data: {
      label: "设备19",
      deviceModel: "RKSM-800",
      deviceStatus: "待机",
      deviceLabel: "仓储入口",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "20",
    position,
    type: nodeType,
    data: {
      label: "设备20",
      deviceModel: "DP-300",
      deviceStatus: "运行中",
      deviceLabel: "出货包装线",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "21",
    position,
    type: nodeType,
    data: {
      label: "设备21",
      deviceModel: "WJ-700",
      deviceStatus: "运行中",
      deviceLabel: "外观检测工位",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "22",
    position,
    type: nodeType,
    data: {
      label: "设备22",
      deviceModel: "DC-880",
      deviceStatus: "运行中",
      deviceLabel: "电性测试区",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "23",
    position,
    type: nodeType,
    data: {
      label: "设备23",
      deviceModel: "TM-200",
      deviceStatus: "运行中",
      deviceLabel: "扫码追溯通道",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "24",
    position,
    type: nodeType,
    data: {
      label: "设备24",
      deviceModel: "WS-110",
      deviceStatus: "待机",
      deviceLabel: "环境监控点",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "25",
    position,
    type: nodeType,
    data: {
      label: "设备25",
      deviceModel: "YZ-450",
      deviceStatus: "运行中",
      deviceLabel: "压装工位D",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "26",
    position,
    type: nodeType,
    data: {
      label: "设备26",
      deviceModel: "ZD-320",
      deviceStatus: "运行中",
      deviceLabel: "检测站3号",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "27",
    position,
    type: nodeType,
    data: {
      label: "设备27",
      deviceModel: "DM-520",
      deviceStatus: "运行中",
      deviceLabel: "激光打码段",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "28",
    position,
    type: nodeType,
    data: {
      label: "设备28",
      deviceModel: "AGV-MAP",
      deviceStatus: "调度中",
      deviceLabel: "物流主通道",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "29",
    position,
    type: nodeType,
    data: {
      label: "设备29",
      deviceModel: "ZX-900",
      deviceStatus: "运行中",
      deviceLabel: "包装确认工位",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  },
  {
    id: "30",
    position,
    type: nodeType,
    data: {
      label: "设备30",
      deviceModel: "MES-FINAL",
      deviceStatus: "运行中",
      deviceLabel: "终检/合格判断",
      leftInfo: "CELL-20240508-001", // 上游电池片 ID
      rightInfo: "CELL-20240508-002"  // 下游电池片 ID

    }
  }

];

export const initialEdges: Edge[] = [
  { id: "e1-2", source: "1", target: "2", type: edgeType, animated: true },
  { id: "e2-3", source: "2", target: "3", type: edgeType, animated: true },
  { id: "e3-4", source: "3", target: "4", type: edgeType, animated: true },
  { id: "e4-5", source: "4", target: "5", type: edgeType, animated: true },
  { id: "e5-6", source: "5", target: "6", type: edgeType, animated: true },
  { id: "e6-7", source: "6", target: "7", type: edgeType, animated: true },
  { id: "e7-8", source: "7", target: "8", type: edgeType, animated: true },
  { id: "e8-9", source: "8", target: "9", type: edgeType, animated: true },
  { id: "e9-10", source: "9", target: "10", type: edgeType, animated: true },
  { id: "e10-11", source: "10", target: "11", type: edgeType, animated: true },
  { id: "e11-12", source: "11", target: "12", type: edgeType, animated: true },
  { id: "e12-13", source: "12", target: "13", type: edgeType, animated: true },
  { id: "e13-14", source: "13", target: "14", type: edgeType, animated: true },
  { id: "e14-15", source: "14", target: "15", type: edgeType, animated: true },
  { id: "e15-16", source: "15", target: "16", type: edgeType, animated: true },
  { id: "e16-17", source: "16", target: "17", type: edgeType, animated: true },
  { id: "e17-18", source: "17", target: "18", type: edgeType, animated: true },
  { id: "e18-19", source: "18", target: "19", type: edgeType, animated: true },
  { id: "e19-20", source: "19", target: "20", type: edgeType, animated: true },
  { id: "e20-21", source: "20", target: "21", type: edgeType, animated: true },
  { id: "e21-22", source: "21", target: "22", type: edgeType, animated: true },
  { id: "e22-23", source: "22", target: "23", type: edgeType, animated: true },
  { id: "e23-24", source: "23", target: "24", type: edgeType, animated: true },
  { id: "e24-25", source: "24", target: "25", type: edgeType, animated: true },
  { id: "e25-26", source: "25", target: "26", type: edgeType, animated: true },
  { id: "e26-27", source: "26", target: "27", type: edgeType, animated: true },
  { id: "e27-28", source: "27", target: "28", type: edgeType, animated: true },
  { id: "e28-29", source: "28", target: "29", type: edgeType, animated: true },
  { id: "e29-30", source: "29", target: "30", type: edgeType, animated: true }
];
